home *** CD-ROM | disk | FTP | other *** search
Wrap
InputDialog 1.2 by Frédéric RINALDI DESCRIPTION InputDialog displays a dynamic dialog with 1 to 3 edit fields, 1 to 4 buttons and 1 to 4 radio buttons. SYNTAX InputDialog [<title>,[<prompts>[,<defaults>[,<buttons> [,<radios>[,<separator>]]]]]] PARAMETERS All parameters are optional. <title> Is the dialog title. Default is "Input" <prompts> is a comma delimited list giving fields headers. An empty item will hide the corresponding header and its associated edit field. <defaults> is a comma delimited list giving the edit fields default content. <buttons> is a comma delimited list giving the standard buttons names. An empty item will hide the corresponding button. <radios> is a comma delimited list giving the radio buttons names. An empty item will hide the corresponding radio button. <separator> is a single char allowing to specify the imput delimiter. Default is comma. Using "!", "?" and "=" as first parameter will return an online help (resp. copyright, syntax and output). USING The XFCN needs associated DLOG/DITL resources. CAUTION You can edit the size of the dialog or the size of items with ResEdit. But don't rename the dialog or delete any of its items. RESULT InputDialog returns a 5 lines result : <name of selected radio button> (or empty if none) <name of button that closed the dialog> <edit field 1 content> <edit field 2 content> <edit field 3 content> So you need only to use "line X of..." to get any part of the result. ERRORS If an error occurs, InputDialog can return : "Error : Missing DLOG ressource" "Error : Missing DITL ressource" "Error : Out of memory" HISTORY 1.2 05/23/94 • Fixed bug when clicking in card's title bar 1.1 02/28/94 • Added smarter DLOG/DITL checking • Added movable dialog drag ability • Added return and enter keys handling 1.0 05/02/93 • First public release -------------------------------------------------------------------- All externals included in this stack are FreeWare and may be used in non-commercial software provided the following notice is visibly present : InputDialog XFCN © Frederic Rinaldi, 1989…1994. Free for non-commercial use. Use in commercial software subjected to prior acknowledgement and licensing from the author, reachable at the following network addresses: AppleLink: RINALDI1 CalvaCom : FR10 Compuserve : 71170,2111 Internet : RINALDI1@APPLELINK.APPLE.COM